package com.xmh.ssm.utils;

import java.util.ResourceBundle;

public class PropertiesUtil {

	private PropertiesUtil() {

	}

	private static String cron = null;

	private static String webServerUrl = null;

	private static String methodName = null;

	private static String methodNameDetail = null;

	private static String callOperator = null;

	private static String certificate = null;

	private static String initDate = null;

	private static String filePath = null;

	private static String REFLECT_METHOD_NAME = null;

	private static String REFLECT_CLASS_NAME = null;

	static {
		init();
	}

	public static void init() {
		ResourceBundle bundle = ResourceBundle.getBundle("properties");

		cron = bundle.getString("cron");

		webServerUrl = bundle.getString("webServerUrl");

		methodName = bundle.getString("methodName");

		methodNameDetail = bundle.getString("methodName_Detail");

		callOperator = bundle.getString("callOperator");

		certificate = bundle.getString("certificate");

		initDate = bundle.getString("initDate");

		filePath = bundle.getString("filePath");

		REFLECT_METHOD_NAME = bundle.getString("REFLECT_METHOD_NAME");

		REFLECT_CLASS_NAME = bundle.getString("REFLECT_CLASS_NAME");
	}

	public static String getREFLECT_METHOD_NAME() {
		return REFLECT_METHOD_NAME;
	}

	public static String getREFLECT_CLASS_NAME() {
		return REFLECT_CLASS_NAME;
	}

	public static String getFilePath() {
		return filePath;
	}

	public static String getMethodName() {
		return methodName;
	}

	public static String getMethodNameDetail() {
		return methodNameDetail;
	}

	public static String getCallOperator() {
		return callOperator;
	}

	public static String getCertificate() {
		return certificate;
	}

	public final static String getCron() {
		return cron;
	}

	public static String getWebServerUrl() {
		return webServerUrl;
	}

	public static String getInitDate() {
		return initDate;
	}

	public static String getValue(String key) {
		return ResourceBundle.getBundle("properties").getString(key);

	}

}
